package com.buaa.aimall.userModule.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Builder;
import lombok.Data;
import com.github.yulichang.annotation.EntityMapping;
import lombok.experimental.FieldNameConstants;
import com.buaa.aimall.modelModule.Entity.ModelEntity;
import com.buaa.aimall.computeModule.Entity.ComputeEntity;
import java.time.LocalDateTime;
import com.buaa.aimall.Utils.Enum.ChargeTypeEnum;

@TableName(value = "shopping_cart")
@FieldNameConstants
@Data
@Builder
public class ShoppingCartEntity {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("fk_creator")
    private String creator;

    @TableField("fk_model")
    private String modelID;

    @TableField("fk_compute")
    private String computeID;

    @TableField("type")
    private ChargeTypeEnum type;

    @TableField("quantity")
    private Integer quantity;

    @TableField("create_time")
    private LocalDateTime createTime;
}
